<?php
/**
 * Created by : PhpStorm
 * User: lihb
 * Date: 2023/10/23
 * Time: 16:19
 */
namespace app\api\logic;

use app\api\model\Area as AreaModel;

class Area{
    private $areaModel;

    public function __construct(AreaModel $areaModel)
    {
        $this->areaModel=$areaModel;
    }


    function getFields($where,$fields){
        return $this->areaModel->where($where)->field($fields)->find()->toArray();
    }
}